package com.tiancheng.trade.payment.service.impl;

import com.tiancheng.trade.payment.mapper.SettleMatchRefundMapper;
import com.tiancheng.trade.payment.model.SettleMatchRefund;
import com.tiancheng.trade.payment.service.SettleMatchRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author kellen
 * @date 2021/2/2
 */
@Service
public class SettleMatchRefundServiceImpl implements SettleMatchRefundService {
    @Autowired
    private SettleMatchRefundMapper mapper;

    @Override
    public Integer saveBatch(List<SettleMatchRefund> list) {
        return mapper.saveBatch(list);
    }

    @Override
    public List<Map<String, Object>> findByRefundFlowIds(List<String> subOrderIds, String settleStatus) {
        return mapper.findByRefundFlowIds(subOrderIds,settleStatus);
    }

    @Override
    public List<Map<String, Object>> findApprFailAndDistSecFlowDetail(List<String> refundFlowIds) {
        return mapper.findApprFailAndDistSecFlowDetail(refundFlowIds);
    }
}
